{% if id is defined %}
	<form action="{{ path('updateUser',{id:id}) }}" {{ form_enctype(form) }} method="POST" class="fos_user_profile_edit">
{% else %}
	<form action="{{ path('fos_user_profile_edit') }}" {{ form_enctype(form) }} method="POST" class="fos_user_profile_edit">
{% endif %}
	<div class="error">
		{{ form_errors(form.username) }}
	</div>
	{{ form_label(form.username) }}
    {{ form_widget(form.username) }}

	<div class="error">
		{{ form_errors(form.email) }}
	</div>
	{{ form_label(form.email) }}
    {{ form_widget(form.email) }}

    Promotion : {{ form_widget(form.promotion) }}
    {{ form_widget(form._token) }}
    <div>
        <input type="submit" value="{{ 'profile.edit.submit'|trans({}, 'FOSUserBundle') }}" />
    </div>
</form>
